package com.jinlia.show.modules.base.model.vo;

import com.jinlia.show.modules.base.system.entity.Company;
import lombok.Data;
import org.springframework.beans.BeanUtils;

@Data
public class CompanyVO extends Company {

    public static CompanyVO fromEntity(Company entity) {
        CompanyVO vo = new CompanyVO();
        BeanUtils.copyProperties(entity, vo);
        return vo;
    }

    public static Company toEntity(CompanyVO vo) {
        Company entity = new Company();
        BeanUtils.copyProperties(vo, entity);
        return entity;
    }
    private Double distance;
    /**
     * 营业状态
     */
    private String businessStatus;
}
